import java.util.Scanner;
public class Main3 {
	enum Grade
	{
		A,B,C,D,E;
	}
	public static void printGradeInfo(Grade grade)
	{
	       System.out.println("class name=class Grade");
	       System.out.println("grade value="+grade);
	}
	public static Grade getGrade(int score)
	{
		Grade A = null ;
		Grade B = null ;
		Grade C = null ;
		Grade D = null ;
		if(score>=90&&score<=100)
			return Grade.A;
		else if(score>=80&&score<=90)
			return Grade.B;
		else if(score>=70&&score<=80)
			return Grade.C;
		else if(score>=60&&score<=70)
			return Grade.D;
		return Grade.E;
		
		
	}
	public static void main(String[] arge)
	{	
		Scanner in=new Scanner(System.in);
		while(true)
		{
			int score=in.nextInt();
			Grade str=getGrade(score);
			switch(str)
			{
			case A:
				System.out.println("Excellent");
				printGradeInfo(str);
				break;
			case B:
				System.out.println("Good");
				printGradeInfo(str);
				break;
			case C:
				System.out.println("Average");
				printGradeInfo(str);
				break;
			case D:
				System.out.println("Fair");
				printGradeInfo(str);
				break;
			case E:
				System.out.println("Poor");
				printGradeInfo(str);
				
				break;
			}
				
		}
	
		
	}
	

}
